<?php
	class config{
		const HOST_NAME = "localhost";
		const HOST_USER = "root";
		const HOST_PASS = "";
		const DB_NAME	= "hometheater";
	}
	define("base_url","http://localhost/hometheater/");
	define("base_url_admin", base_url."administrator/");
	date_default_timezone_set("Asia/Bangkok");
	$time = date('d-m-Y H:i:s'); //Returns IST
	$ip = $_SERVER['REMOTE_ADDR'];
	
	function md6($str,$encode = "victorsang") {
		$str = $str.$encode;
		$return = md5($str);
		
		
		return $return;
	}

	
		
		
	
?>